/*
class Student{
    constructor(name){
        this.name=name;

    }
    hello(){
        console.log("hello大家好，我叫"+this.name+"，很高兴认识大家！！！");
    }
}

var a=new Student("江小秋");
console.log(a);
a.hello()

*/

/*
function demo(name,age,hobby){
    this.name=name,
    this.age=age,
    this.hobby=hobby

    this.hello=hello

    function hello(){
        console.log("大家好，我叫"+this.name);
    }
}
var a= new demo("黄文聪",18,"跑步")

console.log(a);
a.hello();
 */
